package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FavorMapper {
    void addBatchFavor(List<DishFlavor> flavors);

    @Delete("delete from dish_flavor where id =#{id}")
    void deletebydishid(Long id);

    void deletebydishids(List<Long> dishids);
@Select("select * from sky_take_out.dish_flavor where id =#{id}")
    List<DishFlavor> getbydishid(Long id);
}
